feat: Add infrastructure management commands to Makefile#5
Open
feat: Add infrastructure management commands to Makefile#5
Conversation
Enhance Makefile with infrastructure service management: **New Commands:** - `network-create`: Create Docker networks (automa-proxy, automa-monitoring) - `network-remove`: Remove Docker networks - `infra-up`: Start all infrastructure services (Caddy, monitoring, etc.) - `infra-down`: Stop all infrastructure services - `infra-status`: Check status of infrastructure services - `up`: Start infrastructure + all application services - `down`: Stop all services + infrastructure **Command Structure:** ``` make network-create # Setup networks first make infra-up # Start infrastructure make all-up # Start applications # Or simply: make up (does all above) ``` **Infrastructure Services Managed:** 1. Caddy (reverse proxy) 2. Monitoring stack (Prometheus, Grafana, Loki, Promtail, cAdvisor) 3. Watchtower (auto-updates) 4. Duplicati (backups) 5. Fail2ban (security) **Improvements:** - Hierarchical service management (infra → apps) - Graceful shutdown order (apps → infra) - Network prerequisites automatically checked - Enhanced help text with categorized commands - Consistent error handling Follows Unix philosophy: compose simple commands for complex workflows. Refs: #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enhance Makefile with infrastructure service management commands for easy deployment and operations.
New Commands
Setup Commands
Infrastructure Management
Full Stack Management
Infrastructure Services Managed
Usage Example
Command Hierarchy
Enhanced Help Output
Updated
make helpwith categorized commands:Improvements
Breaking Changes
None - all existing commands preserved, only additions.
Dependencies
Testing
Tested locally and on remote server (greenarch) with:
Ready for review - Completes the infrastructure implementation trilogy (docs → infra → commands)